﻿@model AutoClub.Models.RegisterModel
@using AutoClub.Support
@using AutoClub.Resources

<p>
    Complete el siguiente formulario para poder registrar a sus mecánicos. <br />
    La mínima longitud de password requerida es de @Membership.MinRequiredPasswordLength caracteres.
</p>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
   @* @Html.ValidationSummary(false, "La cuenta no pudo ser creada. Por favor corrija los errores a continuación e intente de nuevo.")*@
    <div>
        <fieldset>
            <legend>Informacion de Cuenta</legend>

              <div class="editor-label">
                @Html.LabelFor(m => m.RaceCategorySelected)
            </div>
             <div class="editor-field">
                @Html.DropDownListFor(m => m.RaceCategorySelected, Model.RaceCategories.ToDropDownList(m => m.Id, m => m.Description), PageResources.ChooseOptionText)
                @Html.ValidationMessageFor(m => m.RaceCategorySelected)
            </div>
            <div class="editor-label">
                @Html.LabelFor(m => m.Email)
            </div>
            <div class="editor-field">
                @Html.TextBoxFor(m => m.Email)
                @Html.ValidationMessageFor(m => m.Email)
            </div>

            <div class="editor-label">
                @Html.LabelFor(m => m.Password)
            </div>
            <div class="editor-field">
                @Html.PasswordFor(m => m.Password)
                @Html.ValidationMessageFor(m => m.Password)
            </div>

             <div class="editor-label">
                @Html.LabelFor(m => m.ConfirmPassword)
            </div>
            <div class="editor-field">
                @Html.PasswordFor(m => m.ConfirmPassword)
                @Html.ValidationMessageFor(m => m.ConfirmPassword)
            </div>
            <p>
                <input type="submit" value="Crear cuenta" />
            </p>
        </fieldset>
    </div>
}
